<p class="Paragraph"><help:to-be-embedded Eid="addintext" xmlns:help="http://openoffice.org/2000/help">Here you can use additional Add-In functions.</help:to-be-embedded></p>
<p class="Paragraph">You will also find a<help:link Id="66914" xmlns:help="http://openoffice.org/2000/help">description of the <help:productname>%PRODUCTNAME</help:productname> Calc-AddIn-Interface</help:link> in the Help. In addition, important functions and their parameters are described in the Help for the <help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">Shared Library</help:case><help:default><help:productname>%PRODUCTNAME</help:productname> Calc-Add-In-DLL</help:default></help:switch>.</p>
<p class="Paragraph"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> contains examples for the AddIn interface of <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Calc. If you have installed AddIns, they are located in {installpath}/program/addin <help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">Shared Libraries</help:case><help:default>DLLs</help:default></help:switch>. These provide the functions that you find in AutoPilot: Functions under the <span class="T1">AddIn</span> category.</p>
<p class="Paragraph"><help:link Id="68333" xmlns:help="http://openoffice.org/2000/help">Analysis Functions Part One</help:link></p>
<p class="Paragraph"><help:link Id="68331" xmlns:help="http://openoffice.org/2000/help">Analysis Functions Part Two</help:link></p>
<p class="Paragraph">Furthermore, a folder named "source" is found under the Add-In directory. This folder contains the source code for the <help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">Shared Libraries</help:case><help:default>DLLs</help:default></help:switch> and provides interesting programming examples in an overview of the Add-In-<help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">Shared Library</help:case><help:default>DLL</help:default></help:switch> functions.</p>
<p class="Paragraph">The "Rot*.<help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">SO</help:case><help:default>DLL</help:default></help:switch>" provides an encryption function called <help:link Id="66872" Eid="rot13" xmlns:help="http://openoffice.org/2000/help">ROT13</help:link>, which is based on a simple algorithm.</p>
<p class="Paragraph">You can only use the available "Dfa*.<help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">SO</help:case><help:default>DLL</help:default></help:switch>" functions when under <span class="T1">Tools - Options - Spreadsheet - Calculate</span> in the <span class="T1">Date</span> section the <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> default setting with 12/30/1899 as the starting point on the timeline has been activated. Pay attention to how to <help:link Id="66874" Eid="date" xmlns:help="http://openoffice.org/2000/help">enter dates</help:link> as well.</p>
<p class="Paragraph">Determines whether a year is a leap year. If yes, the function will return the value 1 (TRUE); if not, it will return 0 (FALSE).</p>
<p class="Head3">Syntax</p>
<p class="Paragraph">ISLEAPYEAR(Date)</p>
<p class="Paragraph">Date: Specifies whether a given date falls within a leap year.</p>
<p class="Paragraph">Encrypts a character string by moving the characters 13 positions in the alphabet. After the letter Z, the alphabet begins again (Rotation). By applying the encryption function again to the resulting code, you can decrypt the text.</p>
<p class="Head3">Syntax</p>
<p class="Paragraph">ROT13(Text)</p>
<p class="Paragraph">Text: Enter the character string to be encrypted. ROT13(ROT13(Text)) decrypts the Code.</p>
<p class="Head3">Examples</p>
<p class="Paragraph">ROT13("This is a secret code") returns "Qnf vfg rva trurvzre Pbqr".</p>
<p class="Paragraph">ROT13("Qnf jne rva trurvzre Pbqr") returns "This was a secret code".</p>
<p class="Paragraph">Calculates the number of weeks in a year until a certain date. The number of weeks is defined as follows: a week that spans two years is added to the year in which most days of that week occur.</p>
<p class="Head3">Syntax</p>
<p class="Paragraph">WEEKSINYEAR(Date)</p>
<p class="Paragraph">Date: The date until which the weeks in the year will be calculated.</p>
<p class="Head2"><a name="api"/>Add-ins via <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> API</p>
<p class="Paragraph">Add-Ins can also be implemented via the <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> API. You have to define a Service supporting com::sun::star::sheet::AddIn and register an implementation of it. You can get more information about <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> API documentation for advanced users by requesting it.</p>